import json

dict1 = {"name": "zhangsan","age":18,"sex":"男"}
print(json.dumps(dict1))